package com.wwdx.controller.rest;

import com.wwdx.controller.base.BaseWxPayController;
import com.wwdx.service.impl.BaseWxPayService;
import com.wwdx.service.impl.MiDuWxPayService;
import com.wwdx.utils.ConstantHolder;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author liguoliang
 */
@RestController
@RequestMapping("miduwxpay")
@Api(tags = "蜜读服务号支付接口")
public class MdWxPayController extends BaseWxPayController {

    /**
     * 蜜读商户
     */
    @Resource
    private MiDuWxPayService miDuWxPayService;

    @Override
    public BaseWxPayService getPayService() {
        return miDuWxPayService;
    }

    @Override
    public String getPayName() {
        return "miduwxpay";
    }

    @Override
    protected Integer getPayType() {
        return ConstantHolder.Constant.WECHAT_H5_PAYTYPE;
    }
}